#ifndef ITUBEPANEL_H
#define ITUBEPANEL_H

#include "iTubeFrame.h"
#include "DownloadMgrDlg.h"
#include "DownloadMgr.h"
#include "RenameDlg.h"
#include <wx/filesys.h>
#include "iTube_GUI.h"
#include "Searcher.h"
#include "LinkGrabber.h"
#include "libvdnEvent.h"





#ifndef _DOWNLOAD_
#define _DOWNLOAD_
#include <wx/socket.h>
#include <wx/stream.h>
#include <wx/file.h>
#include <wx/url.h>

#endif


class iTubePanel : public MainPanel
{
public:
	iTubePanel( wxWindow* parent );
	~iTubePanel();

private:
	int SelectionIndex;

	wxWindow* w_DownDialog;
	DownloadMgr* w_DldMgr;

	void OnOK( wxCommandEvent& event );
	void OnSearch( wxCommandEvent& event );
	void OnListSelect( wxCommandEvent& event );
	void OnClear( wxCommandEvent& event );
	void OnDownload( wxCommandEvent& event );
	void OnDownloadEvent( libvdnEvent& event );
	
	bool DownloadInProgress;
	wxString CompletedFilename;
	

	//use our video object to hold all the video information
		c_Videos Videos;

	DECLARE_EVENT_TABLE();
};







#endif //ITUBEPANEL_H